<?php
    header('Content-type:text/json');
    require "../connection.php";
    $order_id = $_POST['order_id'];
    // 接收商品 修改订单上的时间、和是否收货 receipt_time is_receipt update_time
    $curtime = date("Y-m-d H:i:s",time());
   $sql = "update orders set is_receipt=1,receipt_time='$curtime',update_time='$curtime' where id = '$order_id'";
   $res = $conn->doSql($sql);
    echo json_encode($res);

?>